package com.panfeng.xcloud.im.config;

import com.panfeng.xcloud.im.model.TLSSigAPIv6;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IMConfig {

    @Value("${tencent.im.sdkappid:1400319898}")
    private long sdkappid;

    @Value("${tencent.im.key:2b4cba89bacdc478b81742c453a48b7ee5b3c5154a6958105e442bca08de2c1b}")
    private String key;

    @Value("${tencent.im.appAdmin:administrator}")
    private String appAdmin;

    @Bean
    public TLSSigAPIv6 initTLSSigAPIv6(){
        return new TLSSigAPIv6(sdkappid,key,appAdmin);
    }

}
